home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11380 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: cougar.vut.edu.au!yarrobank!s9515994
  2. From: s9515994@dingo.vut.edu.au
  3. Newsgroups: comp.lang.c++
  4. Subject: Help for BC++4.53 TFileOpenDialog Class!
  5. Date: Thu, 14 Mar 1996 06:18:29 GMT
  6. Organization: Victoria University of Technology
  7. Message-ID: <s9515994.2.3147BA35@dingo.vut.edu.au>
  8. NNTP-Posting-Host: my.vut.edu.au
  9. Keywords: Help, BC4.5, TFileOPenDialog
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #1]
  11.  
  12. I have generated a MDI Client Program by using BC++ 4.53 AppExpert and  want 
  13. to using following routine to access a file. This routine can run well in a 
  14. single program, but have the error massages when put it into the MDI Client 
  15. program. 
  16.  
  17. Please help! Any help will be great usful to me!
  18. Many thanks!
  19.  
  20. Please mail to: s9515994@dingo.vut.edu.au
  21. *******************************************************************************
  22.     FileData  = new TOpenSaveDialog::TData(OFN_HIDEREADONLY|OFN_FILEMUSTEXIST,
  23.              "Config Files (*.ini)|*.ini|", 0, "", "INI");
  24. 376    if ((this,*FileData)).Execute() == IDOK)
  25. 377    MessageBox(FileData->FileName, "File Name", MB_OK | MB_ICONEXCLAMATION);
  26.  
  27.  
  28.  
  29. Compiling DTSRTAPP.CPP:
  30. Error DTSRTAPP.CPP 376:
  31.  Could not find a match for 'TFileOpenDialog::TFileOpenDialog(datasortApp * 
  32. const,TOpenSaveDialog::TData)' in function datasortApp::CmSelectConfigFile()
  33.  
  34. Error DTSRTAPP.CPP 377:
  35.  Cannot convert 'char *' to 'const HWND__ near*' in 
  36. function datasortApp::CmSelectConfigFile()
  37.  
  38. Error DTSRTAPP.CPP 377:
  39.  Type mismatch in parameter 1 in call to 'pascal MessageBox(const HWND__ near
  40. *,const char *,const char *,unsigned int)' in function datasortApp::CmS
  41. electConfigFile()
  42.  
  43. Error DTSRTAPP.CPP 377: 
  44. Cannot convert 'int' to 'const  char *' in function  
  45. datasortApp::CmSelectConfigFile()
  46.  
  47. Error DTSRTAPP.CPP 377:
  48.  Type mismatch in parameter 3 in call to 'pascal 
  49. MessageBox(const HWND__ near*,const char *,const char *,unsigned int)' in 
  50. function datasortApp::CmSelectConfigFile()
  51.  
  52. Error DTSRTAPP.CPP 377: 
  53. Too few parameters in call to 'pascal MessageBox(const HWND__ near*,const char 
  54. *,const char *,unsigned int)' in function datasortApp::CmSelectConfigFile()
  55.  
  56.